package com.yks.demo.lvcr.democlient;

import com.yks.demo.lvcr.democlient.service.ITestService;
import com.yks.demo.lvcr.democlient.service.impl.TestServiceImpl;
import com.yks.demo.lvcr.democlient.utils.TestProxy;

public class ProxyDemo {

    public static void main(String[] args) {
        ITestService testService = new TestServiceImpl();
        TestProxy proxy= new TestProxy(testService);
        testService = (ITestService)proxy.getProxy();
        testService.test1();
//        testService.test2();
    }
}
